package com.tjetc.dao;

import com.tjetc.domain.Bed;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface BedDao {

    List<Bed> findByRid(int id) throws SQLException;

    List<Bed> findByDepid(int depid) throws SQLException;

    Bed findByUid(int uid) throws SQLException;

    int getCount(String number) throws SQLException;

    int getCount1(int status, String number) throws SQLException;

    List<Bed> list(String number, PageInfo<Bed> pageInfo) throws SQLException;

    List<Bed> list1(int status, String number, PageInfo<Bed> pageInfo) throws SQLException;

    int getRCount(int roomid) throws SQLException;

    Bed findByNumber(String number,int roomid) throws SQLException;

    int add(Bed bed) throws SQLException;

    int update(Bed bed) throws SQLException;

    Bed findById(int id) throws SQLException;

    int del(int id) throws SQLException;

    int updatePrice(Bed bed) throws SQLException;
    //根据病床id修改，病人入住
    void updateStatus(Bed bed) throws SQLException;

    void userOut(int uid) throws SQLException;



}
